#ifndef JOYPOSCTRL_H
#define JOYPOSCTRL_H

#include <wx/scrolwin.h>


class wxJoyPosCtrl : public wxScrolledWindow
{
public:
	wxJoyPosCtrl(wxWindow *parent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
	~wxJoyPosCtrl(void);

	virtual void OnDraw(wxDC &event);
	void SetJoyPosition(wxPoint &point);

protected:
	wxPoint Prescale(wxPoint &point);
	void OnSize(wxSizeEvent& event);


private:
	wxPoint m_CtrlPoint;
	wxPoint m_JoyPoint;	

	DECLARE_EVENT_TABLE();
	
};

#endif //JOYPOSCTRL_H

